#ifndef __BIGCUTE_H_
#define __BIGCUTE_H_

#include <stm32f4xx_hal.h>
#include "bsp_usart.h"
#include "ov7670.h"

typedef __packed struct {
    uint8_t sof;
    uint8_t type;
    uint16_t width;
    uint16_t height;
    uint8_t header_check;
} image_header_t;

enum {
    STATUS_IDLE = 0,
    STATUS_START,
    STATUS_SENDING,
    STATUS_END
};

void SendImageStart(uint16_t width, uint16_t height);
void SendImageData(const uint8_t* data, uint16_t length);
void SendImageFinish(void);

#endif
